\hypertarget{struct_signal_reader_writer}{
\section{\-Dokumentacja struktury \-Signal\-Reader\-Writer}
\label{struct_signal_reader_writer}\index{\-Signal\-Reader\-Writer@{\-Signal\-Reader\-Writer}}
}


\-Odczytywanie i zapisywanie sygnałów wejściowych i wyjściowych.  




{\ttfamily \#include $<$signal\-Reader\-Writer.\-h$>$}

\subsection*{\-Komponenty}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{struct_signal_reader_writer_1_1_filepaths}{\-Filepaths}
\begin{DoxyCompactList}\small\item\em Ścieżki do plików wejściowych i wyjściowych. \end{DoxyCompactList}\item 
struct \hyperlink{struct_signal_reader_writer_1_1_files}{\-Files}
\begin{DoxyCompactList}\small\item\em \-Wskaźniki do plików wejściowych i wyjściowych. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{\-Metody publiczne}
\begin{DoxyCompactItemize}
\item 
\hyperlink{struct_signal_reader_writer_a4d572fa1e3bfc3cdbc3ee09b4a79dc8d}{\-Signal\-Reader\-Writer} (char $\ast$input\-Signal\-Filepath, char $\ast$desired\-Signal\-Filepath, int \-Bsize)
\item 
\hyperlink{struct_signal_reader_writer_aa1fb4433892c7198331319455c740829}{$\sim$\-Signal\-Reader\-Writer} ()
\item 
void \hyperlink{struct_signal_reader_writer_aa1b412ffbdc6c1beed967666ff21687f}{read\-Input\-Blocks} ()
\item 
void \hyperlink{struct_signal_reader_writer_a7b4182774269aea762ba7dc31a81a82a}{write\-Error\-Block} (cudacomplex $\ast$buf)
\item 
void \hyperlink{struct_signal_reader_writer_ae1012e64eb123e6d7a10ce3c6602b588}{read\-Input\-Signals} ()
\item 
void \hyperlink{struct_signal_reader_writer_aff17d6998f6ff119684556f827330683}{write\-Error\-Signal} (char $\ast$error\-Signal\-Filepath)
\item 
void \hyperlink{struct_signal_reader_writer_a1fb12863e48b8ab9fcc9b3d1ce25d8b5}{free\-Memory} ()
\end{DoxyCompactItemize}
\subsection*{\-Atrybuty publiczne}
\begin{DoxyCompactItemize}
\item 
\hypertarget{struct_signal_reader_writer_a46dcf02abcf41209b6038e6243462cfb}{
cudacomplex $\ast$ \hyperlink{struct_signal_reader_writer_a46dcf02abcf41209b6038e6243462cfb}{u}}
\label{struct_signal_reader_writer_a46dcf02abcf41209b6038e6243462cfb}

\begin{DoxyCompactList}\small\item\em sygnał wejściowy (input) \end{DoxyCompactList}\item 
\hypertarget{struct_signal_reader_writer_a2b204b3f72f3f4d8531e4bfe4cab70c2}{
cudacomplex $\ast$ \hyperlink{struct_signal_reader_writer_a2b204b3f72f3f4d8531e4bfe4cab70c2}{d}}
\label{struct_signal_reader_writer_a2b204b3f72f3f4d8531e4bfe4cab70c2}

\begin{DoxyCompactList}\small\item\em sygnał odniesienia (desired) \end{DoxyCompactList}\item 
\hypertarget{struct_signal_reader_writer_a2d23da95ac0e9d8bcfe6cd651f76a4b8}{
cudacomplex $\ast$ \hyperlink{struct_signal_reader_writer_a2d23da95ac0e9d8bcfe6cd651f76a4b8}{e}}
\label{struct_signal_reader_writer_a2d23da95ac0e9d8bcfe6cd651f76a4b8}

\begin{DoxyCompactList}\small\item\em sygnał wyściowy błędu (error) \end{DoxyCompactList}\item 
\hypertarget{struct_signal_reader_writer_a91ac8a79f0e01facfa085fb37d1ee8f4}{
int \hyperlink{struct_signal_reader_writer_a91ac8a79f0e01facfa085fb37d1ee8f4}{\-B}}
\label{struct_signal_reader_writer_a91ac8a79f0e01facfa085fb37d1ee8f4}

\begin{DoxyCompactList}\small\item\em wielkość bloku \end{DoxyCompactList}\item 
\hypertarget{struct_signal_reader_writer_acc0f5d183017834876f1ea6fd43cde6a}{
long \hyperlink{struct_signal_reader_writer_acc0f5d183017834876f1ea6fd43cde6a}{number\-Of\-Samples}}
\label{struct_signal_reader_writer_acc0f5d183017834876f1ea6fd43cde6a}

\begin{DoxyCompactList}\small\item\em całkowita liczba próbek sygnałów \end{DoxyCompactList}\item 
\hypertarget{struct_signal_reader_writer_a0bf1b424ab98800b360b6d5598863dcf}{
int \hyperlink{struct_signal_reader_writer_a0bf1b424ab98800b360b6d5598863dcf}{samples\-Read}}
\label{struct_signal_reader_writer_a0bf1b424ab98800b360b6d5598863dcf}

\begin{DoxyCompactList}\small\item\em liczba odczytanych próbek, przy odczytywaniu blokowym \end{DoxyCompactList}\item 
\hypertarget{struct_signal_reader_writer_a0ffec1481ad86456a127b10f2c437d0e}{
int \hyperlink{struct_signal_reader_writer_a0ffec1481ad86456a127b10f2c437d0e}{samples\-Written}}
\label{struct_signal_reader_writer_a0ffec1481ad86456a127b10f2c437d0e}

\begin{DoxyCompactList}\small\item\em liczba zapisanych próbek, przy zapisywaniu blokowym \end{DoxyCompactList}\item 
\hypertarget{struct_signal_reader_writer_a64302ec2cbfca1b99bb7956698fb2f12}{
struct \hyperlink{struct_signal_reader_writer_1_1_files}{\-Signal\-Reader\-Writer\-::\-Files} \hyperlink{struct_signal_reader_writer_a64302ec2cbfca1b99bb7956698fb2f12}{files}}
\label{struct_signal_reader_writer_a64302ec2cbfca1b99bb7956698fb2f12}

\begin{DoxyCompactList}\small\item\em wskaźniki do plików wejściowych i wyjściowych \end{DoxyCompactList}\item 
\hypertarget{struct_signal_reader_writer_ac4ccc40051d7110691bec3f94bb174fa}{
struct \*
\hyperlink{struct_signal_reader_writer_1_1_filepaths}{\-Signal\-Reader\-Writer\-::\-Filepaths} \hyperlink{struct_signal_reader_writer_ac4ccc40051d7110691bec3f94bb174fa}{filepaths}}
\label{struct_signal_reader_writer_ac4ccc40051d7110691bec3f94bb174fa}

\begin{DoxyCompactList}\small\item\em ścieżki do plików wejściowych i wyjściowych. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{\-Opis szczegółowy}
\-Odczytywanie i zapisywanie sygnałów wejściowych i wyjściowych. 

\subsection{\-Dokumentacja konstruktora i destruktora}
\hypertarget{struct_signal_reader_writer_a4d572fa1e3bfc3cdbc3ee09b4a79dc8d}{
\index{\-Signal\-Reader\-Writer@{\-Signal\-Reader\-Writer}!\-Signal\-Reader\-Writer@{\-Signal\-Reader\-Writer}}
\index{\-Signal\-Reader\-Writer@{\-Signal\-Reader\-Writer}!SignalReaderWriter@{\-Signal\-Reader\-Writer}}
\subsubsection[{\-Signal\-Reader\-Writer}]{\setlength{\rightskip}{0pt plus 5cm}\-Signal\-Reader\-Writer\-::\-Signal\-Reader\-Writer (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{input\-Signal\-Filepath, }
\item[{char $\ast$}]{desired\-Signal\-Filepath, }
\item[{int}]{\-Bsize}
\end{DoxyParamCaption}
)}}
\label{struct_signal_reader_writer_a4d572fa1e3bfc3cdbc3ee09b4a79dc8d}
\-Konstruktor struktury \hyperlink{struct_signal_reader_writer}{\-Signal\-Reader\-Writer}.\par
 \-Ustawienie ścieżek plków sygnałów wejściowych oraz otwarcie tych plików.\par
 \-Sygnały muszą być zapisane w dwóch plikach binarnych z rozszerzeniem .dat (jeden zawierający część rzeczywistą, drugi część urojoną).\par
 \-Plik z danymi rzeczywistymi musi kończyć się przyrostkiem \-\_\-real.\par
 \-Plik z danymi urojonymi musi kończyć się przyrostkiem \-\_\-imag.\par
 \-Nazwa poprzedzająca przyrostek musi być taka sama dla dwóch plików danego sygnału.\par



\begin{DoxyParams}{\-Parametry}
{\em $\ast$input\-Signal\-Filepath} & -\/ ścieżka dla sygnału wejściowego (input), np.\-: \-C\-:/dane/u \\
\hline
{\em $\ast$desired\-Signal\-Filepath} & -\/ ścieżka dla sygnału odniesienia (desired), np.\-: \-C\-:/dane/d \\
\hline
{\em \-Bsize} & -\/ wielkość bloku danych \\
\hline
\end{DoxyParams}
\hypertarget{struct_signal_reader_writer_aa1fb4433892c7198331319455c740829}{
\index{\-Signal\-Reader\-Writer@{\-Signal\-Reader\-Writer}!$\sim$\-Signal\-Reader\-Writer@{$\sim$\-Signal\-Reader\-Writer}}
\index{$\sim$\-Signal\-Reader\-Writer@{$\sim$\-Signal\-Reader\-Writer}!SignalReaderWriter@{\-Signal\-Reader\-Writer}}
\subsubsection[{$\sim$\-Signal\-Reader\-Writer}]{\setlength{\rightskip}{0pt plus 5cm}\-Signal\-Reader\-Writer\-::$\sim$\-Signal\-Reader\-Writer (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{struct_signal_reader_writer_aa1fb4433892c7198331319455c740829}
\-Destruktor struktury \hyperlink{struct_signal_reader_writer}{\-Signal\-Reader\-Writer}. 

\subsection{\-Dokumentacja funkcji składowych}
\hypertarget{struct_signal_reader_writer_a1fb12863e48b8ab9fcc9b3d1ce25d8b5}{
\index{\-Signal\-Reader\-Writer@{\-Signal\-Reader\-Writer}!free\-Memory@{free\-Memory}}
\index{free\-Memory@{free\-Memory}!SignalReaderWriter@{\-Signal\-Reader\-Writer}}
\subsubsection[{free\-Memory}]{\setlength{\rightskip}{0pt plus 5cm}void \-Signal\-Reader\-Writer\-::free\-Memory (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{struct_signal_reader_writer_a1fb12863e48b8ab9fcc9b3d1ce25d8b5}
\-Metoda zwalniająca pamięć po strukturze \hyperlink{struct_signal_reader_writer}{\-Signal\-Reader\-Writer} i zamykająca pliki.

\begin{DoxyReturn}{\-Zwraca}
void 
\end{DoxyReturn}
\hypertarget{struct_signal_reader_writer_aa1b412ffbdc6c1beed967666ff21687f}{
\index{\-Signal\-Reader\-Writer@{\-Signal\-Reader\-Writer}!read\-Input\-Blocks@{read\-Input\-Blocks}}
\index{read\-Input\-Blocks@{read\-Input\-Blocks}!SignalReaderWriter@{\-Signal\-Reader\-Writer}}
\subsubsection[{read\-Input\-Blocks}]{\setlength{\rightskip}{0pt plus 5cm}void \-Signal\-Reader\-Writer\-::read\-Input\-Blocks (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{struct_signal_reader_writer_aa1b412ffbdc6c1beed967666ff21687f}
\-Metoda odczytująca blok (porcję) danych wejściowych.

\begin{DoxyReturn}{\-Zwraca}
void 
\end{DoxyReturn}
\hypertarget{struct_signal_reader_writer_ae1012e64eb123e6d7a10ce3c6602b588}{
\index{\-Signal\-Reader\-Writer@{\-Signal\-Reader\-Writer}!read\-Input\-Signals@{read\-Input\-Signals}}
\index{read\-Input\-Signals@{read\-Input\-Signals}!SignalReaderWriter@{\-Signal\-Reader\-Writer}}
\subsubsection[{read\-Input\-Signals}]{\setlength{\rightskip}{0pt plus 5cm}void \-Signal\-Reader\-Writer\-::read\-Input\-Signals (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{struct_signal_reader_writer_ae1012e64eb123e6d7a10ce3c6602b588}
\-Metoda odczytująca w całości sygnały wejściowe (input, desired) z plików.\par
 \-Ustawia zmienną number\-Of\-Samples.

\begin{DoxyReturn}{\-Zwraca}
void 
\end{DoxyReturn}
\hypertarget{struct_signal_reader_writer_a7b4182774269aea762ba7dc31a81a82a}{
\index{\-Signal\-Reader\-Writer@{\-Signal\-Reader\-Writer}!write\-Error\-Block@{write\-Error\-Block}}
\index{write\-Error\-Block@{write\-Error\-Block}!SignalReaderWriter@{\-Signal\-Reader\-Writer}}
\subsubsection[{write\-Error\-Block}]{\setlength{\rightskip}{0pt plus 5cm}void \-Signal\-Reader\-Writer\-::write\-Error\-Block (
\begin{DoxyParamCaption}
\item[{cudacomplex $\ast$}]{buf}
\end{DoxyParamCaption}
)}}
\label{struct_signal_reader_writer_a7b4182774269aea762ba7dc31a81a82a}
\-Metoda dopisująca do pliku blok (porcję) danych wyjściowych.


\begin{DoxyParams}{\-Parametry}
{\em $\ast$buf} & -\/ bufor z blokiem do zapisania \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Zwraca}
void 
\end{DoxyReturn}
\hypertarget{struct_signal_reader_writer_aff17d6998f6ff119684556f827330683}{
\index{\-Signal\-Reader\-Writer@{\-Signal\-Reader\-Writer}!write\-Error\-Signal@{write\-Error\-Signal}}
\index{write\-Error\-Signal@{write\-Error\-Signal}!SignalReaderWriter@{\-Signal\-Reader\-Writer}}
\subsubsection[{write\-Error\-Signal}]{\setlength{\rightskip}{0pt plus 5cm}void \-Signal\-Reader\-Writer\-::write\-Error\-Signal (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{error\-Signal\-Filepath}
\end{DoxyParamCaption}
)}}
\label{struct_signal_reader_writer_aff17d6998f6ff119684556f827330683}
\-Metoda zapisująca sygnał błędu (error) do plików binarnych.\par
 \-Odzielny plik dla części rzeczywistej i urojonej (przyrostki nazw plków odpowienio\-: \-\_\-real, \-\_\-imag).


\begin{DoxyParams}{\-Parametry}
{\em $\ast$error\-Signal\-Filepath} & -\/ ścieżka do pliku z sygnałem błędu (error), np.\-: \-C\-:/dane/e \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Zwraca}
void 
\end{DoxyReturn}


\-Dokumentacja dla tej struktury została wygenerowana z plików\-:\begin{DoxyCompactItemize}
\item 
\-C\-:/\-Users/boski/\-Documents/\-Visual Studio 2008/\-Projects/cuda/blms/\hyperlink{signal_reader_writer_8h}{signal\-Reader\-Writer.\-h}\item 
\-C\-:/\-Users/boski/\-Documents/\-Visual Studio 2008/\-Projects/cuda/blms/\hyperlink{signal_reader_writer_8cu}{signal\-Reader\-Writer.\-cu}\end{DoxyCompactItemize}
